<template>
  <div>
    <div class="title-box">
      <slot name="title"></slot>
      <span></span>
      <span><slot name="text"></slot></span>
      <span></span>
    </div>
  </div>
</template>

<script>
export default {
    name:"Title",
};
</script>

<style lang="scss" scoped>
.title-box {
  font-size: 28px;
  color: #666;
  line-height: 40px;
  margin-bottom: 20px;
  span {
    font-size: 16px;
    display: inline-block;
    height: 28px;
    line-height: 28px;
  }
  span:nth-child(1) {
    width: 24px;
    height: 24px;
    background-image: url(https://www.vmovier.com/Public/Home/images/block_l.png);
    background-repeat: no-repeat;
    margin-left: 24px;
  }
  span:nth-child(2) {
    margin-left: 5px;
  }
  span:nth-child(3) {
    width: 24px;
    height: 24px;
    background-image: url(https://www.vmovier.com/Public/Home/images/block_r.png);
    background-repeat: no-repeat;
    margin-left: 5px;
  }
}
</style>